﻿using System.Collections.Generic;
using KPIS.GERP.GHRMS.MODEL;

namespace KPIS.GERP.GHRMS.BLL
{
	public class HisHealthCheckBLL : IBLL.IHisHealthCheckBLL
	{
		private readonly IDAL.IHisHealthCheckDAL _iHisHealthCheckDAL = DALFactory.DataAccess.CreateHisHealthCheck();

		public IList<HisHealthCheckInfo> List()
		{
			return _iHisHealthCheckDAL.List();
		}

		public IList<HisHealthCheckInfo> List(int sequence)
		{
			return _iHisHealthCheckDAL.List(sequence);
		}

		public IList<HisHealthCheckInfo> ListOfEmployee(int empSeq)
		{
			return _iHisHealthCheckDAL.List(null, empSeq);
		}

		public IList<HisHealthCheckInfo> ListOfEmployeeByYearly(int? year, int empSeq)
		{
			return _iHisHealthCheckDAL.List(null, empSeq, year);
		}

		public IList<HisHealthCheckInfo> ListOfEmployeeByRoundly(int? year, int empSeq, int? roundNumber = null)
		{
			return _iHisHealthCheckDAL.List(null, empSeq, year, HisHealthCheckInfo.RoundTypeOption.Roundly, roundNumber);
		}

		public void Insert(HisHealthCheckInfo info)
		{
			_iHisHealthCheckDAL.Insert(info);
		}

		public void Update(HisHealthCheckInfo info)
		{
			_iHisHealthCheckDAL.Update(info);
		}

		public void Delete(int sequence, int updatedBy)
		{
			_iHisHealthCheckDAL.Delete(sequence, updatedBy);
		}
	}
}
